package com.qdu.servlet;

import com.qdu.dao.UsersDao;
import com.qdu.entity.Users;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 点击修改等级之后到这个servlet
 *
 * @author Lenovo
 */
@WebServlet("/muls")
public class modifyUserLevelServlet extends HttpServlet {

    UsersDao userdao = new UsersDao();

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        String id = req.getParameter("id");
        Users user = userdao.UserLogin(id);
        req.setAttribute("user", user);
        req.getRequestDispatcher("modifyUserLevel.jsp").forward(req, resp);

    }

}
